﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Input;

namespace WPFContentControl
{
    public class MainViewModel
    {
        public RelayCommand<object> OpenTParamCommand { get; set; } = new RelayCommand<object>((t) =>
        {
            System.Windows.MessageBox.Show(t.ToString());
        });

        public RelayCommand<TextBox> MouseDownCommand { get; set; } = new RelayCommand<TextBox>((textbox) =>
        {
            textbox.Text += DateTime.Now + " 您单击了TextBox" + "\r";
        });
    }
}
